package com.ruoyi.mall.pms.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品属性对象 pms_product_attribute
 *
 * @author xuxing
 * @date 2021-02-03
 */
public class PmsProductAttribute extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 商品属性分类id */
    private Long productAttributeCategoryId;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 属性录入方式 */
    @Excel(name = "属性录入方式")
    private Integer inputType;

    /** 可选值列表 */
    @Excel(name = "可选值列表")
    private String inputList;

    /** 排序字段 */
    @Excel(name = "排序字段")
    private Long sort;

    /** 属性的类型 */
    private Integer type;

    /** 销售属性类型 */
    private Integer filterType;

    public Integer getFilterType() {
        return filterType;
    }

    public void setFilterType(Integer filterType) {
        this.filterType = filterType;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setProductAttributeCategoryId(Long productAttributeCategoryId)
    {
        this.productAttributeCategoryId = productAttributeCategoryId;
    }

    public Long getProductAttributeCategoryId()
    {
        return productAttributeCategoryId;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setInputType(Integer inputType)
    {
        this.inputType = inputType;
    }

    public Integer getInputType()
    {
        return inputType;
    }
    public void setInputList(String inputList)
    {
        this.inputList = inputList;
    }

    public String getInputList()
    {
        return inputList;
    }
    public void setSort(Long sort)
    {
        this.sort = sort;
    }

    public Long getSort()
    {
        return sort;
    }
    public void setType(Integer type)
    {
        this.type = type;
    }

    public Integer getType()
    {
        return type;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("productAttributeCategoryId", getProductAttributeCategoryId())
            .append("name", getName())
            .append("inputType", getInputType())
            .append("inputList", getInputList())
            .append("sort", getSort())
            .append("type", getType())
            .toString();
    }
}
